<?php echo $this->Form->create('User', array('action' => 'login','class'=>'form-signin form-horizontal')); 
echo $this->Session->flash(); 
?>
<fieldset>
    <legend><h4 class="form-signin-heading" style="text-align: center"><?php echo __('Đăng nhập hệ thống'); ?></h4></legend>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-4 control-label input-sm">Tài khoản</label>
        <div class="col-sm-7">
          <?php 
           echo $this->Form->input('username', array('div'=>'clearfix',
            'before'=>'<div class="input">',
            'after'=>$this->Form->error('username', array(), array('wrap' => 'span', 'class' => 'help-inline')).'</div>',
            'error' => array('attributes' => array('style' => 'display:none')),
            'required',
            'label'=>false, 'class'=>'form-control input-sm'));
          ?>
        </div>
     </div>
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-4 control-label input-sm">Mật khẩu</label>
        <div class="col-sm-7">
          <?php 
         echo $this->Form->input('password', array('div'=>'clearfix',
            'before'=>'<div class="input">',
            'after'=>$this->Form->error('password', array(), array('wrap' => 'span', 'class' => 'help-inline')).'</div>',
            'error' => array('attributes' => array('style' => 'display:none')),
            'label'=>false, 
            'required', 
             'class'=>'form-control input-sm'));
          ?>
        </div>
     </div>
    <div class="form-group">
         <label for="inputEmail3" class="col-sm-4 control-label input-sm"></label>
        <div class="col-sm-7">
         <?php echo $this->Form->submit(__('Login'), array('class'=>'btn btn-primary  btn-sm', 'div'=>false));?>
             <?php echo $this->Form->submit(__('Reset'), array('type'=>'reset','class'=>'btn btn-danger  btn-sm', 'div'=>false));?>
        </div>
     </div>
        
   

</fieldset>
<?php
echo $this->Form->end();
?>

